package work.model.com.mymvvm;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import java.util.List;

/**
 * Description：
 * Created by cczhr on 2018/1/30.
 * email:cczhr1@163.com
 */

public class UserBean  extends BaseObservable {
    private String name;
    private String age;

    public UserBean(String name, String age) {
        this.name = name;
        this.age = age;
    }
    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);

    }
    @Bindable
    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
        notifyPropertyChanged(BR.age);
    }
}
